package cn.xt.bean;

import java.io.UnsupportedEncodingException;

public class HouseCriteria {
	private String city;
	private String date;
	private String keyword;
	private String price;
	private String lease;
	private String houseType;
	private String sort;
	private Integer pageNO;
	private Integer count;
	private Integer pageSize=8;
	
	public Integer getPageNO() {
		return pageNO;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public void setPageNO(Integer pageNO) {
		this.pageNO = pageNO;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		
		try {
			this.city = new String(city.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.city=city;
			e.printStackTrace();
		}
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		try {
			this.date = new String(date.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.date=date;
			e.printStackTrace();
		}
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		try {
			this.keyword = new String(keyword.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.keyword=keyword;
			e.printStackTrace();
		}
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		try {
			this.price = new String(price.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.price=price;
			e.printStackTrace();
		}
	}
	public String getLease() {
		return lease;
	}
	public void setLease(String lease) {
		try {
			this.lease = new String(lease.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.lease=lease;
			e.printStackTrace();
		}
	}
	public String getHouseType() {
		return houseType;
	}
	public void setHouseType(String houseType) {
		try {
			this.houseType = new String(houseType.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.houseType=houseType;
			e.printStackTrace();
		}
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		try {
			this.sort = new String(sort.getBytes("ISO-8859-1"),"UTF-8");
		} catch (UnsupportedEncodingException e) {
			this.sort=sort;
			e.printStackTrace();
		}
	}

	public String print() {
		return "HouseCriteria [city=" + city + ", date=" + date + ", keyword="
				+ keyword + ", price=" + price + ", lease=" + lease
				+ ", houseType=" + houseType + ", sort=" + sort + ", pageNO="
				+ pageNO + ", count=" + count + ", pageSize=" + pageSize + "]";
	}
	
}
